package demo03;

public class Demo04Student {
    public static void main(String[] args) {
        Student stu = new Student();

        stu.setName("小tou");
        stu.setAge(8);
        stu.setMale(true);

        System.out.println("姓名：" + stu.getName()); // 小tou
        System.out.println("年龄：" + stu.getAge()); // 8
        System.out.println("性别：" + (stu.isMale() ? "男" : "女")); // 男
    }
}
